package com.wicket.okrbff.biz.service.dto.common;


import com.wicket.okrbff.common.dto.PagedDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;


/**
 * @desc BffPostDto
 * @使用场景
 */
@Data
public class BffPostDto extends PagedDto implements Serializable {

    /**
     * 职位ID:
     */
    @ApiModelProperty("职位ID")
    private String postId;

    /**
     * 职位编号:
     */
    @ApiModelProperty("职位编号")
    private String postNumber;

    /**
     * 职位名称:
     */
    @ApiModelProperty("职位名称")
    private String postName;

    /**
     * 主体生命周期:
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;

    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      BffPostDto that = (BffPostDto) o;
      return  postId == that.postId&&postNumber == that.postNumber&&postName == that.postName&&subjectLifeCycle == that.subjectLifeCycle;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), postId,postNumber,postName,subjectLifeCycle);
    }

}
